import {useRoutes} from "react-router-dom";
import AddGoods from "../pages/AddGoods";
import GoodsList from "../pages/GoodsList";
import Cart from "../pages/Cart";


export default function useRouters(){
    return useRoutes([
        {
            path:'/',
            element:<AddGoods/>
        },
        {
            path:'/goodsList',
            element:<GoodsList/>
        },
        {
            path:'/cart',
            element:<Cart/>
        }
    ])
}